]> dgit.raspbian.org Git - gnome-shell.git/commit
layout: Reject promise if background loading is interrupted
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 10 Feb 2026 14:30:46 +0000 (15:30 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 3 Mar 2026 12:49:04 +0000 (12:49 +0000)
commitac5f521c656d4f88e1b62c2e7e1d610850515ca9
treeeb5e8f6a453f06fdc00e41093ac9113721fa8450
parentc89d2061b38aa69f3aaafeb594d598c07b14721b
layout: Reject promise if background loading is interrupted

Currently if a background manager is destroyed while we are waiting
for the background to load, the corresponding promise never resolves.

To prevent this from happening (and the startup animation getting
stuck as a result), guard the loading operation with a cancellable
and reject the promise when it is cancelled.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9018
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4070>
js/ui/layout.js